/*!
 *@file main.qml
 *@brief 主文件
 *@version 1.0
*/
import QtQuick 2.12
import QtQuick.Controls 2.7
import QtQuick.Layouts 1.12
import QtQuick.Window 2.2

ApplicationWindow {
    id: frmWindow
    visible: true
    color: "green"
    title: qsTr("Qml UI")
    width: 1920
    height: 1080
    onClosing: {
        if(Services.isRunning()) {
            Services.stop();

        }

    }
    Component.onCompleted: {
        if(Services.isRunning() || Services.start()) {
            //console.log("Login res: " + Services.doLogin("user1", "1"));
        }
    }
    StackView {
        id: stackView
        anchors.fill: parent
        initialItem: page0

    }
    Page0 {
        id: page0

    }
    Page1 {
        id:page1
    }

}

